home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Telephones.a < prev    next >
Text File  |  1996-05-01  |  51KB  |  1,480 lines

  1. ;
  2. ;    File:        Telephones.a
  3. ;
  4. ;    Contains:    Telephone Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__TELEPHONES__') = 'UNDEFINED' THEN
  19. __TELEPHONES__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  25.     include 'Windows.a'
  26.     ENDIF
  27.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  28.     include 'Dialogs.a'
  29.     ENDIF
  30.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  31.     include 'Errors.a'
  32.     ENDIF
  33.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  34.     include 'Events.a'
  35.     ENDIF
  36.     IF &TYPE('__CTBUTILITIES__') = 'UNDEFINED' THEN
  37.     include 'CTBUtilities.a'
  38.     ENDIF
  39.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  40.     include 'Components.a'
  41.     ENDIF
  42.     IF FOR_SYSTEM7_ONLY THEN
  43.  
  44. curTELVersion                    EQU        3                    ; current Telephone Manager version 
  45.                                                             ;    the chooseXXX symbols are defined in CTBUtilities.(pah) 
  46. telChooseDisaster                EQU        -2
  47. telChooseFailed                    EQU        -1
  48. telChooseAborted                EQU        0
  49. telChooseOKMinor                EQU        1
  50. telChooseOKMajor                EQU        2
  51. telChooseCancel                    EQU        3
  52. telChooseOKTermChanged            EQU        4
  53.     ENDIF
  54.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  55.     IF &TYPE('classTEL') = 'UNDEFINED' THEN
  56.  
  57.                                                             ; telephone tool file type 
  58. classTEL                        EQU        'vbnd'
  59.     ENDIF
  60.  
  61.                                                             ; PHYSICAL TERMINAL CONSTANTS 
  62.                                                             ; INDEPENDENT HANDSET CONSTANTS 
  63. telIndHSOnHook                    EQU        0                    ; independent handset on hook 
  64. telIndHSOffHook                    EQU        1                    ; independent handset off hook 
  65. telIndHSDisconnected            EQU        0                    ; handset disconnected from the line 
  66. telIndHSConnected                EQU        1                    ; handset connected to the line 
  67.                                                             ; HOOK STATE CONSTANTS 
  68. telHandset                        EQU        1                    ; handset hookswitch 
  69. telSpeakerphone                    EQU        2                    ; speakerphone 'on' switch 
  70. telDeviceOffHook                EQU        1                    ; device off hook 
  71. telDeviceOnHook                    EQU        0                    ; device on hook 
  72.                                                             ; VOLUME CONTROL CONSTANTS 
  73. telHandsetSpeakerVol            EQU        1                    ; volume of the handset speaker 
  74. telHandsetMicVol                EQU        2                    ; sensitivity of the handset mic 
  75. telSpeakerphoneVol                EQU        3                    ; speakerphone volume 
  76. telSpeakerphoneMicVol            EQU        4                    ; sensitivity of the spkrphone mic 
  77. telRingerVol                    EQU        5                    ; volume of the ringer 
  78. telBuiltinSPVol                    EQU        6                    ; volume of the built-in speakerphone 
  79. telBuiltinSPMicVol                EQU        7                    ; sensitivity of the built-in speakerphone mic 
  80. telVolSame                        EQU        0                    ; leaves the volume at previous level 
  81. telVolMin                        EQU        1                    ; turns volume down to minimum level, but not off 
  82. telVolMax                        EQU        100                    ; highest level allowed by the Telephone Manager 
  83. telVolStateSame                    EQU        0                    ; leaves device in same state 
  84. telVolStateOff                    EQU        1                    ; turns the device off , 
  85.                                                             ; but doesn't change the volume setting. 
  86.                                                             ; Use for mute functions. 
  87. telVolStateOn                    EQU        2                    ; turns the device on.  Volume setting is 
  88.                                                             ; the same as previously set.
  89.                                                             ; DISPLAY CONSTANTS 
  90. telNormalDisplayMode            EQU        1                    ; normal display mode 
  91. telInspectMode                    EQU        2                    ; inspect display mode 
  92. telMiscMode                        EQU        3                    ; miscellaneous display mode 
  93. telRetrieveMode                    EQU        4                    ; message retrieval mode 
  94. telDirectoryQueryMode            EQU        5                    ; electronic directory mode 
  95. telEntireDisplay                EQU        0                    ; entire Display 
  96.                                                             ; KEY PRESS CONSTANTS 
  97. telHangupKey                    EQU        1                    ; drop, or release, key pressed 
  98. telHoldKey                        EQU        2                    ; hold key pressed 
  99. telConferenceKey                EQU        3                    ; conference key pressed 
  100. telTransferKey                    EQU        4                    ; transfer key pressed 
  101. telForwardKey                    EQU        5                    ; call forward key pressed 
  102. telCallbackKey                    EQU        6                    ; call back key pressed 
  103. telDNDKey                        EQU        7                    ; do not disturb key pressed 
  104. telCallPickupKey                EQU        8                    ; call Pickup key pressed 
  105. telCallParkKey                    EQU        9                    ; call Park key pressed 
  106. telCallDeflectKey                EQU        10                    ; call Deflect key pressed 
  107. telVoiceMailAccessKey            EQU        11                    ; voice Mail Access key pressed 
  108. telCallRejectKey                EQU        12                    ; call Reject key pressed 
  109. telOtherKey                        EQU        16                    ; other key pressed 
  110. telKeyPadPress                    EQU        1                    ; key pressed on 12 digit keypad
  111. telFeatureKeyPress                EQU        2                    ; feature Key Pressed 
  112. telTerminalEnabled                EQU        0
  113. telTerminalDisabled                EQU        1
  114. telUnknown                        EQU        0                    ; unknown error 
  115. telTerminalHWDisconnected        EQU        1                    ; terminal hardware is disconnected 
  116. telDeviceDriverClosed            EQU        2                    ; device driver is closed 
  117.                                                             ; ALERT PATTERN 
  118. telPattern0                        EQU        0
  119. telPattern1                        EQU        1
  120. telPattern2                        EQU        2
  121. telPattern3                        EQU        3
  122. telPattern4                        EQU        4
  123. telPattern5                        EQU        5
  124. telPattern6                        EQU        6
  125. telPattern7                        EQU        7
  126. telPatternOff                    EQU        8
  127. telPatternUndefined                EQU        15                    ; DN TYPES 
  128. telAllDNs                        EQU        0                    ; counts all types of DNs 
  129. telInternalDNs                    EQU        1                    ; connected to PBX or other non-public switch 
  130. telInternalDNsOnly                EQU        2                    ; connected to PBX or other non-public switch 
  131.                                                             ; and able to place internal calls only 
  132. telExternalDNs                    EQU        3                    ; connected to public network 
  133. telDNTypeUnknown                EQU        4                    ; DN type unknown 
  134.                                                             ; DN USAGE 
  135. telDNNotUsed                    EQU        0                    ; DN is not used - onhook 
  136. telDNPOTSCall                    EQU        1                    ; DN used for POTs call 
  137. telDNFaxCall                    EQU        2                    ; DN used for fax call 
  138. telDNDataCall                    EQU        3                    ; DN used for data call 
  139. telDNAlerting                    EQU        4                    ; Incoming call at DN 
  140. telDNUnknownState                EQU        5                    ; DN is in unknown state 
  141.                                                             ; CALL FORWARDING TYPES 
  142. telForwardImmediate                EQU        1                    ; immediately forward calls 
  143. telForwardBusy                    EQU        2                    ; forward on Busy 
  144. telForwardNoAnswer                EQU        3                    ; forward on No answer 
  145. telForwardBusyNA                EQU        4                    ; forwarding for busy and no answer
  146. telForwardTypeUnknown            EQU        5                    ; type of forwarding is unknown 
  147.                                                             ; CALL FORWARDING MESSAGES 
  148. telForwardCleared                EQU        0                    ; forwarding has been cleared 
  149. telForwardEst                    EQU        1                    ; forwarding has been established
  150. telForwardFailed                EQU        2                    ; attempt to setup forwarding has failed
  151.                                                             ; DO NOT DISTURB TYPES 
  152. telDNDIntExt                    EQU        0                    ; do not disturb for all internal and external calls
  153. telDNDExternal                    EQU        1                    ; do not disturb for external calls only 
  154. telDNDInternal                    EQU        2                    ; do not disturb for internal calls only 
  155. telDNDNonIntercom                EQU        3                    ; do not disturb for all calls except intercom 
  156.                                                             ; DO NOT DISTURB MESSAGES 
  157. telDNDCleared                    EQU        0                    ; do not disturb has been cleared 
  158. telDNDEst                        EQU        1                    ; do not disturb has been established 
  159. telDNDFailed                    EQU        2                    ; attempt to setup do not disturb has failed 
  160.                                                             ; VOICE MAIL MESSAGES 
  161. telAllVoiceMessagesRead            EQU        0                    ; all messages have been read, none are  waiting 
  162.                                                             ; to be read 
  163. telNewVoiceMessage                EQU        1                    ; a new message has arrived or messages are waiting 
  164.                                                             ; for this DN 
  165.                                                             ; DNSELECT MESSAGE 
  166. telDNDeselected                    EQU        0                    ; DN has been deselected 
  167. telDNSelected                    EQU        1                    ; DN has been selected 
  168.                                                             ; CALL ORIGINATORS 
  169. telInternalCall                    EQU        0                    ; return nth internal CA 
  170. telExternalCall                    EQU        1                    ; return nth external CA 
  171. telUnknownCallOrigin            EQU        2                    ; unknown call type 
  172. telAllCallOrigins                EQU        2                    ; return nth CA internal or external 
  173.                                                             ; CALL TYPES 
  174. telVoiceMailAccessOut            EQU        -7
  175. telPageOut                        EQU        -6
  176. telIntercomOut                    EQU        -5
  177. telCallbackOut                    EQU        -4
  178. telPickup                        EQU        -3
  179. telParkRetrieve                    EQU        -2
  180. telNormalOut                    EQU        -1
  181. telUnknownCallType                EQU        0
  182. telNormalIn                        EQU        1
  183. telForwardedImmediate            EQU        2
  184. telForwardedBusy                EQU        3
  185. telForwardedNoAnswer            EQU        4
  186. telTransfer                        EQU        5
  187. telDeflected                    EQU        6
  188. telIntercepted                    EQU        7
  189. telDeflectRecall                EQU        8
  190. telParkRecall                    EQU        9
  191. telTransferredRecall            EQU        10
  192. telIntercomIn                    EQU        11
  193. telCallbackIn                    EQU        12                    ; DIAL TYPES 
  194. telDNDialable                    EQU        0                    ; this DN could be dialed via TELSetupCall 
  195. telDNNorthAmerican                EQU        1                    ; rmtDN is standard North America 10 digit number 
  196. telDNInternational                EQU        2                    ; rmtDN is an international number 
  197. telDNAlmostDialable                EQU        3                    ; rmtDN is almost dialable, 
  198.                                                             ; missing prefix such as 9 or 1 
  199. telDNUnknown                    EQU        15                    ; unknown whether DN is dialable 
  200.                                                             ; CALL PROGRESS MESSAGES 
  201. telCAPDialTone                    EQU        1                    ; dial tone 
  202. telCAPRinging                    EQU        2                    ; destination CA is alerting 
  203. telCAPDialing                    EQU        3                    ; dialing the other end 
  204. telCAPReorder                    EQU        4                    ; reorder 
  205. telCAPBusy                        EQU        5                    ; busy 
  206. telCAPRouted                    EQU        6                    ; call routed; rmtDN will hold the routing directory 
  207.                                                             ; number routeDN and routePartyName have been updated 
  208. telCAPRoutedOff                    EQU        7                    ; call routed off-network; no further progress will 
  209.                                                             ; be available 
  210. telCAPTimeout                    EQU        8                    ; call timed out 
  211. telCAPUpdate                    EQU        9                    ; name and rmtDN information has been updated 
  212. telCAPPrompt                    EQU        10                    ; the network is prompting for more information 
  213. telCAPWaiting                    EQU        11                    ; call is proceeding, but there is no response yet 
  214.                                                             ; from the destination 
  215. telCAPCPC                        EQU        12                    ; telephone tool detected CPC signal 
  216. telCAPNoDialTone                EQU        13                    ; dial tone not detected 
  217. telCAPUnknown                    EQU        15                    ; call progress state unknown 
  218. telCAPDialDisabled                EQU        16                    ; Blacklisting: Dial Disabled 
  219. telCAPBlacklistedNumber            EQU        17                    ; Blacklisting: Blacklisted Number 
  220. telCAPForbiddenNumber            EQU        18                    ; Blacklisting: Forbidden Number 
  221. telCAPModemGuardTime            EQU        19                    ; Modem Guard Timein force, unable to dial 
  222. telCAPLCDetected                EQU        20                    ; trying to dial a number while the handset is offhook 
  223. telCAPLostLC                    EQU        21                    ; trying manual dial or answer while handset not off hook 
  224.                                                             ; or also lost line current during dialing. 
  225.                                                             ; OUTGOING CALL MESSAGES 
  226. telPhysical                        EQU        0                    ; user lifted handset and initiated call 
  227. telProgrammatic                    EQU        1                    ; programmatic initiation of outgoing call 
  228.                                                             ; DISCONNECT MESSAGES 
  229. telLocalDisconnect                EQU        0                    ; local party, this user, responsible for disconnect 
  230. telRemoteDisconnect                EQU        1                    ; remote party responsible for disconnect 
  231.                                                             ; DISCONNECT TYPES 
  232. telCADNormal                    EQU        1                    ; normal disconnect 
  233. telCADBusy                        EQU        2                    ; remote user busy 
  234. telCADNoResponse                EQU        3                    ; remote not responding 
  235. telCADRejected                    EQU        4                    ; call rejected 
  236. telCADNumberChanged                EQU        5                    ; number changed 
  237. telCADInvalidDest                EQU        6                    ; invalid destination address 
  238. telCADFacilityRejected            EQU        7                    ; requested facility rejected 
  239. telCADUnobtainableDest            EQU        9                    ; destination not obtainable 
  240. telCADCongested                    EQU        10                    ; network congestion 
  241. telCADIncompatibleDest            EQU        11                    ; incompatible destination 
  242. telCADTimeout                    EQU        12                    ; call timed out 
  243. telCADUnknown                    EQU        15                    ; reason unknown 
  244.                                                             ; CONFERENCE MESSAGES 
  245. telConferencePrepFailed            EQU        0                    ; conference could not be prepared 
  246. telConferencePending            EQU        1                    ; conference prepared successfully 
  247. telConferenceEstFailed            EQU        2                    ; conference could not be established 
  248. telConferenceEst                EQU        3                    ; conference established 
  249.                                                             ; TRANSFER MESSAGES 
  250. telTransferPrepFailed            EQU        0                    ; transfer could not be prepared 
  251. telTransferPending                EQU        1                    ; transfer prepared successfully 
  252. telTransferEst                    EQU        2                    ; consult or blind xfer successful 
  253. telTransferFailed                EQU        3                    ; consult or blind xfer failed 
  254. telTransferred                    EQU        4                    ; message to originator of CA specifying 
  255.                                                             ; that call was transferred to rmtDN 
  256.                                                             ; HOLD MESSAGES 
  257. telHoldCleared                    EQU        0
  258. telHoldEst                        EQU        1
  259. telHoldFailed                    EQU        2                    ; RECEIVE DIGIT MESSAGES 
  260. telDigitAudible                    EQU        0
  261. telDigitNotAudible                EQU        1                    ; CALL PARK MESSAGES 
  262. telCallParkEst                    EQU        1                    ; call has been successfully parked 
  263. telCallParkRetrieveEst            EQU        2                    ; parked Call has been successfully retrieved 
  264. telCallParkFailed                EQU        3                    ; attempt to setup call park has failed 
  265. telCallParkRetrieveFailed        EQU        4                    ; attempt to retrieve parked call failed 
  266. telCallParkRecall                EQU        5                    ; call park has been recalled 
  267.                                                             ; CALL BACK MESSAGES 
  268. telCallbackCleared                EQU        0                    ; call back has been cleared 
  269. telCallbackEst                    EQU        1                    ; call back has been established 
  270. telCallbackNowAvail                EQU        2                    ; call can be called back with TELCallBackNow 
  271.                                                             ; if CA is zero, else call IS calling back on CA 
  272. telCallbackFailed                EQU        3                    ; attempt to setup callback has failed 
  273. telCallbackDesired                EQU        4                    ; a user has called this terminal, received no 
  274.                                                             ; answer and desires this terminal to call it 
  275.                                                             ; back 
  276. telCallbackDesiredCleared        EQU        5                    ; call back for no answer no longer desired 
  277. telCalledback                    EQU        6                    ; callback has occurred successfully 
  278.                                                             ; CALL REJECT MESSAGES 
  279. telCallRejectFailed                EQU        0                    ; attempt to reject call has failed 
  280. telCallRejectEst                EQU        1                    ; call successfully rejected 
  281. telCallRejected                    EQU        2                    ; message to originator that call was rejected 
  282.                                                             ; CALL DEFLECT MESSAGES 
  283. telCallDeflectFailed            EQU        0                    ; attempt to deflect call has failed 
  284. telCallDeflectEst                EQU        1                    ; call successfully deflected 
  285. telCallDeflectRecall            EQU        2                    ; deflected call has been recalled 
  286. telCallDeflected                EQU        3                    ; message to originator that call was deflected 
  287.                                                             ; to rmtDN 
  288. telAutoDeflectImmediate            EQU        4                    ; a call was automatically deflected from this 
  289.                                                             ; terminal as a result of immediate call 
  290.                                                             ; forwarding 
  291. telAutoDeflectBusy                EQU        5                    ; a call was automatically deflected from this 
  292.                                                             ; terminal as a result of call forwarding on busy 
  293. telAutoDeflectNoAnswer            EQU        6                    ; a call was automatically deflected from this 
  294.                                                             ; terminal as a result of call forwarding on 
  295.                                                             ; no answer 
  296.                                                             ; CONFERENCE SPLIT MESSAGES 
  297. telConferenceSplitFailed        EQU        0                    ; CA could not be split 
  298. telConferenceSplitEst            EQU        1                    ; CA split successfully 
  299.                                                             ; CONFERENCE DROP MESSAGES 
  300. telConferenceDropFailed            EQU        0                    ; CA could not be dropped 
  301. telConferenceDropped            EQU        1                    ; CA dropped successfully 
  302.                                                             ; CALL PICKUP MESSAGES 
  303. telCallPickupEst                EQU        0                    ; call pickup was successful 
  304. telCallPickupFailed                EQU        1                    ; call pickup failed 
  305. telCallPickedUp                    EQU        2                    ; message to originator that call was picked 
  306.                                                             ; up at a different DN 
  307.                                                             ; PAGING MESSAGES 
  308. telPageEst                        EQU        0                    ; paging was successful 
  309. telPageComplete                    EQU        1                    ; paging activity completed 
  310. telPageFailed                    EQU        2                    ; paging failed 
  311.                                                             ; INTERCOM MESSAGES 
  312. telIntercomEst                    EQU        0                    ; intercom was successful 
  313. telIntercomComplete                EQU        1                    ; intercom activity completed 
  314. telIntercomFailed                EQU        2                    ; intercom failed 
  315.                                                             ; MODEM TONE MESSAGES 
  316. telModemToneDetected            EQU        0                    ; modem tone was detected 
  317. telModemToneCleared                EQU        1                    ; modem tone went away 
  318.                                                             ; FAX TONE MESSAGES 
  319. telFaxToneDetected                EQU        0                    ; fax tone was detected 
  320. telFaxToneCleared                EQU        1                    ; fax tone went away 
  321.                                                             ; IN USE MESSAGES 
  322. telInUsePrivate                    EQU        0                    ; MADN is in use and can't be accessed 
  323. telInUseCanAccess                EQU        1                    ; MADN is in use, and others can access it 
  324.                                                             ; and join in 
  325. telInUseCanMakePrivate            EQU        2                    ; MADN is in use, but available for any one 
  326.                                                             ; person to access 
  327. telInUseCleared                    EQU        3                    ; MADN is no longer in use 
  328.                                                             ; CALL APPEARANCE STATES 
  329. telCAIdleState                    EQU        0                    ; a call doesn't exist at this time 
  330. telCAInUseState                    EQU        1                    ; the call is active but at another terminal 
  331. telCAOfferState                    EQU        2                    ; a call is being offered to the terminal 
  332. telCAQueuedState                EQU        3                    ; a call is being queued at this terminal 
  333. telCAAlertingState                EQU        4                    ; a call is alerting at the terminal 
  334. telCADialToneState                EQU        5                    ; initiated outgoing call has dialtone 
  335. telCADialingState                EQU        6                    ; initiated outgoing call is dialing 
  336. telCAWaitingState                EQU        7                    ; initiated outgoing call is waiting for 
  337.                                                             ; response from destination 
  338. telCARingingState                EQU        8                    ; the outgoing call is ringing. 
  339. telCABusyState                    EQU        9                    ; destination is busy or can't be reached 
  340. telCAHeldState                    EQU        10                    ; call has been put on hold by this terminal 
  341. telCAConferencedState            EQU        11                    ; this CA is part of a conference now 
  342. telCAActiveState                EQU        12                    ; the call is active and parties are free 
  343.                                                             ; to exchange data 
  344. telCAReorderState                EQU        13                    ; CA is in a reorder state 
  345. telCAConferencedHeldState        EQU        14                    ; CA is a conference call in a held state 
  346. telCAUnknownState                EQU        15                    ; the call state is unknown 
  347.                                                             ; TERMINAL MESSAGE EVENTMASKS 
  348. telTermHookMsg                    EQU        $00000001            ; the hookswitch state has changed 
  349. telTermKeyMsg                    EQU        $00000002            ; a phone pad key has been depressed 
  350. telTermVolMsg                    EQU        $00000004            ; volume setting has changed 
  351. telTermDisplayMsg                EQU        $00000008            ; display has changed 
  352. telTermEnableMsg                EQU        $00000010            ; terminal has become enabled 
  353. telTermOpenMsg                    EQU        $00000020            ; terminal has been opened 
  354. telTermCloseMsg                    EQU        $00000040            ; terminal is shutting down 
  355. telTermResetMsg                    EQU        $00000080            ; terminal has been reset 
  356. telTermErrorMsg                    EQU        $00000100            ; hard equipment error 
  357. telTermIndHSStateChgMsg            EQU        $00000200            ; change in handset state from inacive to 
  358.                                                             ; active or vice versa 
  359. telTermIndHSConnectMsg            EQU        $00000400            ; independent handset connection has been changed 
  360. telTermKeyImmMsg                EQU        $00000800            ; immidiate arrival of phone pad key 
  361. telTermVolStateMsg                EQU        $00001000            ; volume state has changed 
  362. telTermOtherMsg                    EQU        $80000000            ; vendor defined error 
  363. telAllTermMsgs                    EQU        $00001FFF            ; mask to all non tool specific terminal events 
  364.                                                             ; DN MESSAGE EVENTMASK CONSTANTS 
  365. telDNForwardMsg                    EQU        $00000001            ; forward feature activity 
  366. telDNDNDMsg                        EQU        $00000002            ; do not disturb feature activity 
  367. telDNVoiceMailMsg                EQU        $00000004            ; message has arrived for this DN 
  368. telDNSelectedMsg                EQU        $00000008            ; DN has been selected or deselected 
  369. telDNOtherMsg                    EQU        $80000000            ; a custom message for use by tools 
  370. telAllDNMsgs                    EQU        $0000000F            ; mask to all non tool specific dn events 
  371.                                                             ; CA MESSAGE EVENTMASK CONSTANTS 
  372. telCAAlertingMsg                EQU        $00000001            ; CA is alerting  
  373. telCAOfferMsg                    EQU        $00000002            ; CA is being offered a call 
  374. telCAProgressMsg                EQU        $00000004            ; call progress info for this CA 
  375. telCAOutgoingMsg                EQU        $00000008            ; CA is initiating an outgoing call 
  376. telCADisconnectMsg                EQU        $00000010            ; CA disconnected (dropped or rmt disc 
  377. telCAActiveMsg                    EQU        $00000020            ; CA is active and voice/data is free 
  378.                                                             ; to flow end to end 
  379. telCAConferenceMsg                EQU        $00000040            ; conference activity on CA 
  380. telCATransferMsg                EQU        $00000080            ; transfer feature activity 
  381. telCAHoldMsg                    EQU        $00000100            ; hold feature activity 
  382. telCADigitsMsg                    EQU        $00000200            ; remote signaling digits arrived 
  383. telCACallParkMsg                EQU        $00000400            ; CA call park feature activity 
  384. telCACallbackMsg                EQU        $00000800            ; CA call back feature activity  
  385. telCARejectMsg                    EQU        $00001000            ; CA is rejected 
  386. telCADeflectMsg                    EQU        $00002000            ; CA is deflected 
  387. telCAForwardMsg                    EQU        $00004000            ; CA is forwarded to this DN  
  388. telCAConferenceSplitMsg            EQU        $00008000            ; conference split activity  
  389. telCAConferenceDropMsg            EQU        $00010000            ; conference drop activity  
  390. telCAQueuedMsg                    EQU        $00020000            ; CA has been queued  
  391. telCAInUseMsg                    EQU        $00040000            ; CA is in use  
  392. telCACallPickupMsg                EQU        $00080000            ; CA pickup activity 
  393. telCAPagingMsg                    EQU        $00100000            ; CA paging activity 
  394. telCAIntercomMsg                EQU        $00200000            ; CA intercom activity 
  395. telCAModemToneMsg                EQU        $00400000            ; modem tones detected 
  396. telCAFaxToneMsg                    EQU        $00800000            ; fax tones detected 
  397. telCAIdleMsg                    EQU        $01000000            ; CA is in idle state 
  398. telCASuccessiveAlertMsg            EQU        $02000000            ; phone is alerting, one per ring 
  399. telCAUserUserInfoMsg            EQU        $04000000            ; user to user information has arrrived 
  400.                                                             ; for this CA 
  401. telCAHandOffMsg                    EQU        $08000000            ; CA is ready for hand-off 
  402. telCAVoiceDetectedMsg            EQU        $10000000            ; voice Detect related event 
  403. telCASilenceDetectedMsg            EQU        $20000000            ; silence Detect related event 
  404. telCADigitsImmMsg                EQU        $40000000            ; immidiate arrival of remote signaling digits 
  405. telCAOtherMsg                    EQU        $80000000            ; tool specific CA message 
  406. telAllCAMsgs                    EQU        $7FFFFFFF            ; mask to all non tool specific CA events 
  407. ; typedef OSErr                         TELErr
  408.  
  409. ; typedef unsigned long                 TELFlags
  410.  
  411.  
  412. telNoMenus                        EQU        $00010000            ; tells tool not to display any custom menus 
  413. telQuiet                        EQU        $00020000            ; tells tool not to display any dialog boxes or alerts 
  414. telConfigChanged                EQU        $00040000            ; notifies application that the config has changed 
  415. ; typedef unsigned long                 TELFeatureFlags
  416.  
  417.  
  418. pcmAvail                        EQU        $00000001            ; true if PCM voice data accessible 
  419. hasHandset                        EQU        $00000002            ; true if a phone handset is attached  
  420. hasSpeakerphone                    EQU        $00000004            ; true if a 2 way speakerphone is attached 
  421. canOnHookDial                    EQU        $00000008            ; can on-hook dial 
  422. hasRinger                        EQU        $00000010            ; terminal has its own ringer 
  423. canSetDisplay                    EQU        $00000020            ; application can write to the display 
  424. hasKeypad                        EQU        $00000040            ; attached phone has standard 12 key pad 
  425. hasVideo                        EQU        $00000080            ; terminal has a videophone 
  426. hasOther                        EQU        $00000100            ; reserved for future use 
  427. crossDNConference                EQU        $00000200            ; can perform cross-DN conferences 
  428. hasSubaddress                    EQU        $00000400            ; attached network supports subaddressing 
  429. hasUserUserInfo                    EQU        $00000800            ; network supports user-to-user info 
  430. hasHandsetSoundStreams            EQU        $00001000            ; sound streams are supported on the handset 
  431. hasIndHandset                    EQU        $00002000            ; handset can be accessed independently of the phone line 
  432. hasBuiltinSpeakerphone            EQU        $00004000            ; speaker and microphone of the Mac can be used 
  433. TELTermRecord            RECORD 0
  434. tRef                     ds.w    1                ; offset: $0 (0)
  435. featureFlags             ds.l    1                ; offset: $2 (2)
  436. handsetSpeakerVol         ds.w    1                ; offset: $6 (6)
  437. handsetMicVol             ds.w    1                ; offset: $8 (8)
  438. speakerphoneVol             ds.w    1                ; offset: $A (10)
  439. speakerphoneMicVol         ds.w    1                ; offset: $C (12)
  440. ringerVol                 ds.w    1                ; offset: $E (14)
  441. otherVol                 ds.w    1                ; offset: $10 (16)
  442. ringerTypes                 ds.w    1                ; offset: $12 (18)
  443. hasDisplay                 ds.w    1                ; offset: $14 (20)
  444. displayRows                 ds.w    1                ; offset: $16 (22)
  445. numDNs                     ds.w    1                ; offset: $18 (24)
  446. maxAllocCA                 ds.w    1                ; offset: $1A (26)
  447. curAllocCA                 ds.w    1                ; offset: $1C (28)
  448. builtinSpeakerVol         ds.w    1                ; offset: $1E (30)
  449. builtinSpeakerMicVol     ds.w    1                ; offset: $20 (32)
  450. reserved                 ds.l    1                ; offset: $22 (34)
  451. sizeof                     EQU *                    ; size:   $26 (38)
  452.                         ENDR
  453. ; typedef struct TELTermRecord *        TELTermPtr
  454.  
  455. TELRecord                RECORD 0
  456. procID                     ds.w    1                ; offset: $0 (0)
  457. flags                     ds.l    1                ; offset: $2 (2)
  458. reserved                 ds.w    1                ; offset: $6 (6)
  459. refCon                     ds.l    1                ; offset: $8 (8)
  460. userData                 ds.l    1                ; offset: $C (12)
  461. defproc                     ds.l    1                ; offset: $10 (16)
  462. config                     ds.l    1                ; offset: $14 (20)
  463. oldConfig                 ds.l    1                ; offset: $18 (24)
  464. pTELTerm                 ds.l    1                ; offset: $1C (28)
  465. telPrivate                 ds.l    1                ; offset: $20 (32)
  466. reserved1                 ds.l    1                ; offset: $24 (36)
  467. reserved2                 ds.l    1                ; offset: $28 (40)
  468. pTELTermSize             ds.l    1                ; offset: $2C (44)
  469. version                     ds.w    1                ; offset: $30 (48)
  470. sizeof                     EQU *                    ; size:   $32 (50)
  471.                         ENDR
  472. ; typedef struct TELRecord *            TELPtr
  473.  
  474. ; typedef TELPtr *                        TELHandle
  475.  
  476. ; typedef unsigned long                 TELDNFeatureFlags
  477.  
  478.  
  479. dndSub                            EQU        $00000001            ; do not disturb subscribed 
  480. dndAvail                        EQU        $00000002            ; do not disturb available 
  481. dndActive                        EQU        $00000004            ; do not disturb active 
  482. voiceMailAccessSub                EQU        $00000008            ; message waiting subscribed 
  483. voiceMailAccessAvail            EQU        $00000010            ; message waiting available 
  484. voiceMailAccessActive            EQU        $00000020            ; message waiting active 
  485. pagingSub                        EQU        $00000040            ; paging is subscribed 
  486. pagingAvail                        EQU        $00000080            ; paging is available 
  487. pagingActive                    EQU        $00000100            ; paging is active 
  488. intercomSub                        EQU        $00000200            ; intercom is subscribed 
  489. intercomAvail                    EQU        $00000400            ; intercom is available 
  490. intercomActive                    EQU        $00000800            ; intercom is active 
  491. dnSelectSub                        EQU        $00001000            ; DN select is subscribed 
  492. dnSelectAvail                    EQU        $00002000            ; DN select is available 
  493. dnSelectActive                    EQU        $00004000            ; DN is selected 
  494. callPickupSub                    EQU        $00008000            ; call pickup is subscribed 
  495. callPickupAvail                    EQU        $00010000            ; call pickup is available 
  496. dnInUse                            EQU        $00020000            ; a CA is allocated for this DN 
  497. logicalDN                        EQU        $00040000            ; this DN is not on this terminal 
  498. dnAccessible                    EQU        $00080000            ; commands can be sent to this DN 
  499. canInitiate                        EQU        $00100000            ; an outgoing CA can be initiated 
  500. voiceMessageWaiting                EQU        $00200000            ; voice mail waiting for this dn 
  501. hasDNSoundStreams                EQU        $00400000            ; sound streams are supported on this DN 
  502. autoAnswerAvail                    EQU        $00800000            ; AutoAnswer is set for this DN 
  503. autoAnswerActive                EQU        $01000000            ; AutoAnswer is currently applied to CA on this DN 
  504. tollSaverAvail                    EQU        $02000000            ; tollSaver is set for this DN 
  505. tollSaverActive                    EQU        $04000000            ; tollSaver is currently applied to CA on this DN 
  506. ; typedef unsigned long                 TELDNForwardFlags
  507.  
  508.  
  509. immediateForwardSub                EQU        $00000001            ; immediate call forward subscribed 
  510. immediateForwardAvail            EQU        $00000002            ; immediate call forward available 
  511. immediateForwardActive            EQU        $00000004            ; immediate call forward active 
  512. busyForwardSub                    EQU        $00000008            ; forward on busy subscribed 
  513. busyForwardAvail                EQU        $00000010            ; forward on busy available 
  514. busyForwardActive                EQU        $00000020            ; forward on busy active 
  515. noAnswerForwardSub                EQU        $00000040            ; no answer call forward subscribed 
  516. noAnswerForwardAvail            EQU        $00000080            ; no answer call forward available 
  517. noAnswerForwardActive            EQU        $00000100            ; no answer call forward active 
  518. busyNAForwardSub                EQU        $00000200            ; busy & no answer call forward subscribed 
  519. busyNAForwardAvail                EQU        $00000400            ; busy & no answer call forward available 
  520. busyNAForwardActive                EQU        $00000800            ; busy & no answer call forward active 
  521. TELDNRecord                RECORD 0
  522. dnRef                     ds.w    1                ; offset: $0 (0)
  523. dn                         ds.l    1                ; offset: $2 (2)
  524. dnPartyName                 ds.l    1                ; offset: $6 (6)
  525. dnSubaddress             ds.l    1                ; offset: $A (10)
  526. hTEL                     ds.l    1                ; offset: $E (14)
  527. maxAllocCA                 ds.w    1                ; offset: $12 (18)
  528. curAllocCA                 ds.w    1                ; offset: $14 (20)
  529. dnType                     ds.w    1                ; offset: $16 (22)
  530. featureFlags             ds.l    1                ; offset: $18 (24)
  531. numPageIDs                 ds.w    1                ; offset: $1C (28)
  532. numIntercomIDs             ds.w    1                ; offset: $1E (30)
  533. numPickupIDs             ds.w    1                ; offset: $20 (32)
  534. forwardFlags             ds.l    1                ; offset: $22 (34)
  535. iForwardDN                 ds.l    1                ; offset: $26 (38)
  536. iForwardSubaddress         ds.l    1                ; offset: $2A (42)
  537. iForwardPartyName         ds.l    1                ; offset: $2E (46)
  538. bForwardDN                 ds.l    1                ; offset: $32 (50)
  539. bForwardSubaddress         ds.l    1                ; offset: $36 (54)
  540. bForwardPartyName         ds.l    1                ; offset: $3A (58)
  541. naForwardDN                 ds.l    1                ; offset: $3E (62)
  542. naForwardSubaddress         ds.l    1                ; offset: $42 (66)
  543. naForwardPartyName         ds.l    1                ; offset: $46 (70)
  544. naForwardRings             ds.w    1                ; offset: $4A (74)
  545. telDNPrivate             ds.l    1                ; offset: $4C (76)
  546. refCon                     ds.l    1                ; offset: $50 (80)
  547. userData                 ds.l    1                ; offset: $54 (84)
  548. reserved                 ds.l    1                ; offset: $58 (88)
  549. sizeof                     EQU *                    ; size:   $5C (92)
  550.                         ENDR
  551. ; typedef struct TELDNRecord *            TELDNPtr
  552.  
  553. ; typedef TELDNPtr *                    TELDNHandle
  554.  
  555. ; typedef unsigned long                 TELCAFeatureFlags
  556.  
  557.  
  558. holdSub                            EQU        $00000001            ; hold subscribed  
  559. holdAvail                        EQU        $00000002            ; hold available  
  560. holdActive                        EQU        $00000004            ; hold active  
  561. conferenceSub                    EQU        $00000008            ; conference subscribed 
  562. conferenceAvail                    EQU        $00000010            ; conference available 
  563. conferenceActive                EQU        $00000020            ; conference active  
  564. conferenceDropSub                EQU        $00000040            ; conference drop subscribed  
  565. conferenceDropAvail                EQU        $00000080            ; a call to TELDrop will drop this 
  566.                                                             ; CA only from a conference 
  567. conferenceSplitSub                EQU        $00000100            ; conference split subscribed  
  568. conferenceSplitAvail            EQU        $00000200            ; conference split available for this CA 
  569. numToConferenceRequired            EQU        $00000400            ; the number of CAs to be conferenced is 
  570.                                                             ; required in TELConfPrep  
  571. transferSub                        EQU        $00000800            ; transfer subscribed  
  572. transferAvail                    EQU        $00001000            ; transfer available  
  573. transferActive                    EQU        $00002000            ; transfer active 
  574. caRelated                        EQU        $00004000            ; this CA is the specified in some other CA's relatedCA field
  575. ; typedef unsigned long                 TELCAOtherFeatures
  576.  
  577.  
  578. callbackSub                        EQU        $00000001            ; call back subscribed 
  579. callbackAvail                    EQU        $00000002            ; call back available 
  580. callbackActive                    EQU        $00000004            ; call back active  
  581. callbackClearSub                EQU        $00000008            ; call back clearing subscribed 
  582. callbackNowSub                    EQU        $00000010            ; call back now subscribed 
  583. callbackNowAvail                EQU        $00000020            ; call back now available  
  584. callbackBusy                    EQU        $00000040            ; call back on busy 
  585. callbackNoAnswer                EQU        $00000080            ; call back on no answer 
  586. callbackReturnsRef                EQU        $00000100            ; call back returns a reference 
  587. parkSub                            EQU        $00000200            ; call park subscribed 
  588. parkAvail                        EQU        $00000400            ; call park available 
  589. parkActive                        EQU        $00000800            ; call park active 
  590. parkRetrieveSub                    EQU        $00001000            ; call park retrieve subscribed 
  591. parkRetrieveWithID                EQU        $00002000            ; retrieve parked calls with IDs 
  592. parkWithReturnedID                EQU        $00004000            ; park call to a specific remote ID 
  593. parkWithGivenID                    EQU        $00040000            ; for switch that requires ID for parking 
  594. rejectable                        EQU        $00008000            ; CA is rejectable  
  595. deflectable                        EQU        $00010000            ; CA is deflectable  
  596. acceptable                        EQU        $00020000            ; CA is acceptable 
  597. voiceDetected                    EQU        $00080000            ; voice has been detected on this CA incase of 
  598.                                                             ; an incoming call 
  599. callAnswdTSRings                EQU        $00100000            ; incoimng call was answered on TollSaver rings 
  600.  
  601.  
  602. ; typedef TELCARecord *                    TELCAPtr
  603.  
  604. ; typedef TELCAPtr *                    TELCAHandle
  605.  
  606. TELCARecord                RECORD 0
  607. caRef                     ds.w    1                ; offset: $0 (0)
  608. hTELDN                     ds.l    1                ; offset: $2 (2)
  609. hTEL                     ds.l    1                ; offset: $6 (6)
  610. caState                     ds.w    1                ; offset: $A (10)
  611. relatedCA                 ds.l    1                ; offset: $C (12)
  612. connectTime                 ds.l    1                ; offset: $10 (16)        ;  can be used by application to keep track of connect time 
  613. intExt                     ds.w    1                ; offset: $14 (20)
  614. callType                 ds.w    1                ; offset: $16 (22)
  615. dialType                 ds.w    1                ; offset: $18 (24)
  616. bearerType                 ds.w    1                ; offset: $1A (26)
  617. rate                     ds.w    1                ; offset: $1C (28)
  618. rmtDN                     ds.l    1                ; offset: $1E (30)
  619. rmtPartyName             ds.l    1                ; offset: $22 (34)
  620. rmtSubaddress             ds.l    1                ; offset: $26 (38)
  621. routeDN                     ds.l    1                ; offset: $2A (42)
  622. routePartyName             ds.l    1                ; offset: $2E (46)
  623. routeSubaddress             ds.l    1                ; offset: $32 (50)
  624. priority                 ds.w    1                ; offset: $36 (54)
  625. conferenceLimit             ds.w    1                ; offset: $38 (56)
  626. featureFlags             ds.l    1                ; offset: $3A (58)
  627. otherFeatures             ds.l    1                ; offset: $3E (62)
  628. telCAPrivate             ds.l    1                ; offset: $42 (66)
  629. refCon                     ds.l    1                ; offset: $46 (70)
  630. userData                 ds.l    1                ; offset: $4A (74)
  631. reserved                 ds.l    1                ; offset: $4E (78)
  632. sizeof                     EQU *                    ; size:   $52 (82)
  633.                         ENDR
  634. ;  Constants for HandleType in structure above 
  635.  
  636. telHandleType                    EQU        0                    ; feature requires a terminal handle 
  637. telDNHandleType                    EQU        1                    ; feature requires a DN handle 
  638. telCAHandleType                    EQU        2                    ; feature requires a CA handle 
  639. FeatureList                RECORD 0
  640. featureID                 ds.w    1                ; offset: $0 (0)
  641. featureName                 ds.l    1                ; offset: $2 (2)
  642. handleType                 ds.w    1                ; offset: $6 (6)
  643. nextFeature                 ds.l    1                ; offset: $8 (8)
  644. sizeof                     EQU *                    ; size:   $C (12)
  645.                         ENDR
  646. ; typedef struct FeatureList *            FeatureListPtr
  647.  
  648. ;  CA MESSAGE STRUCTURES FOR MSGINFO 
  649. CAGenericMsgRec            RECORD 0
  650. rmtDN                     ds.l    1                ; offset: $0 (0)
  651. rmtName                     ds.l    1                ; offset: $4 (4)
  652. rmtSubaddress             ds.l    1                ; offset: $8 (8)
  653. dialType                 ds.w    1                ; offset: $C (12)
  654. sizeof                     EQU *                    ; size:   $E (14)
  655.                         ENDR
  656. CAUserUserInfoMsgRec    RECORD 0
  657. userUserInfo             ds.l    1                ; offset: $0 (0)
  658. sizeof                     EQU *                    ; size:   $4 (4)
  659.                         ENDR
  660. CAConfMsgRec            RECORD 0
  661. relatedCA                 ds.l    1                ; offset: $0 (0)
  662. sizeof                     EQU *                    ; size:   $4 (4)
  663.                         ENDR
  664. CATransfMsgRec            RECORD 0
  665. rmtDN                     ds.l    1                ; offset: $0 (0)
  666. rmtName                     ds.l    1                ; offset: $4 (4)
  667. rmtSubaddress             ds.l    1                ; offset: $8 (8)
  668. dialType                 ds.w    1                ; offset: $C (12)
  669. prepCA                     ds.l    1                ; offset: $E (14)
  670. sizeof                     EQU *                    ; size:   $12 (18)
  671.                         ENDR
  672. ;
  673. ; pascal TELErr InitTEL(void )
  674. ;
  675.     IF GENERATINGCFM THEN
  676.         IMPORT_CFM_FUNCTION InitTEL
  677.     ENDIF
  678.  
  679. ;
  680. ; pascal TELErr TELGetInfo(TELHandle hTEL)
  681. ;
  682.     IF GENERATINGCFM THEN
  683.         IMPORT_CFM_FUNCTION TELGetInfo
  684.     ENDIF
  685.  
  686. ;
  687. ; pascal TELErr TELOpenTerm(TELHandle hTEL)
  688. ;
  689.     IF GENERATINGCFM THEN
  690.         IMPORT_CFM_FUNCTION TELOpenTerm
  691.     ENDIF
  692.  
  693. ;
  694. ; pascal TELErr TELResetTerm(TELHandle hTEL)
  695. ;
  696.     IF GENERATINGCFM THEN
  697.         IMPORT_CFM_FUNCTION TELResetTerm
  698.     ENDIF
  699.  
  700. ;
  701. ; pascal TELErr TELCloseTerm(TELHandle hTEL)
  702. ;
  703.     IF GENERATINGCFM THEN
  704.         IMPORT_CFM_FUNCTION TELCloseTerm
  705.     ENDIF
  706.  
  707. ;
  708. ; pascal TELErr TELTermMsgHand(TELHandle hTEL, long eventMask, TelephoneTermMsgUPP msgProc, long globals)
  709. ;
  710.     IF GENERATINGCFM THEN
  711.         IMPORT_CFM_FUNCTION TELTermMsgHand
  712.     ENDIF
  713.  
  714. ;
  715. ; pascal TELErr TELClrTermMsgHand(TELHandle hTEL, TelephoneTermMsgUPP msgProc)
  716. ;
  717.     IF GENERATINGCFM THEN
  718.         IMPORT_CFM_FUNCTION TELClrTermMsgHand
  719.     ENDIF
  720.  
  721. ;
  722. ; pascal TELErr TELTermEventsSupp(TELHandle hTEL, long *eventMask)
  723. ;
  724.     IF GENERATINGCFM THEN
  725.         IMPORT_CFM_FUNCTION TELTermEventsSupp
  726.     ENDIF
  727.  
  728. ;
  729. ; pascal short TELGetProcID(Str255 name)
  730. ;
  731.     IF GENERATINGCFM THEN
  732.         IMPORT_CFM_FUNCTION TELGetProcID
  733.     ENDIF
  734.  
  735. ;
  736. ; pascal TELHandle TELNew(short procID, TELFlags flags, long refCon, long userData)
  737. ;
  738.     IF GENERATINGCFM THEN
  739.         IMPORT_CFM_FUNCTION TELNew
  740.     ENDIF
  741.  
  742. ;
  743. ; pascal TELHandle TELNewWithResult(short procID, TELFlags flags, long refCon, long userData, TELErr *error)
  744. ;
  745.     IF GENERATINGCFM THEN
  746.         IMPORT_CFM_FUNCTION TELNewWithResult
  747.     ENDIF
  748.  
  749. ;
  750. ; pascal TELErr TELDefault(Ptr *theConfig, short procID, Boolean allocate)
  751. ;
  752.     IF GENERATINGCFM THEN
  753.         IMPORT_CFM_FUNCTION TELDefault
  754.     ENDIF
  755.  
  756. ;
  757. ; pascal Boolean TELValidate(TELHandle hTEL)
  758. ;
  759.     IF GENERATINGCFM THEN
  760.         IMPORT_CFM_FUNCTION TELValidate
  761.     ENDIF
  762.  
  763. ;
  764. ; pascal Ptr TELGetConfig(TELHandle hTEL)
  765. ;
  766.     IF GENERATINGCFM THEN
  767.         IMPORT_CFM_FUNCTION TELGetConfig
  768.     ENDIF
  769.  
  770. ;
  771. ; pascal short TELSetConfig(TELHandle hTEL, Ptr thePtr)
  772. ;
  773.     IF GENERATINGCFM THEN
  774.         IMPORT_CFM_FUNCTION TELSetConfig
  775.     ENDIF
  776.  
  777. ;
  778. ; pascal TELErr TELChoose(TELHandle *hTEL, Point where, TelephoneChooseIdleProcPtr idleProc)
  779. ;
  780.     IF GENERATINGCFM THEN
  781.         IMPORT_CFM_FUNCTION TELChoose
  782.     ENDIF
  783.  
  784. ;
  785. ; pascal Handle TELSetupPreflight(short procID, long *magicCookie)
  786. ;
  787.     IF GENERATINGCFM THEN
  788.         IMPORT_CFM_FUNCTION TELSetupPreflight
  789.     ENDIF
  790.  
  791. ;
  792. ; pascal void TELSetupSetup(short procID, Ptr theConfig, short count, DialogPtr theDialog, long *magicCookie)
  793. ;
  794.     IF GENERATINGCFM THEN
  795.         IMPORT_CFM_FUNCTION TELSetupSetup
  796.     ENDIF
  797.  
  798. ;
  799. ; pascal Boolean TELSetupFilter(short procID, Ptr theConfig, short count, DialogPtr theDialog, EventRecord *theEvent, short *theItem, long *magicCookie)
  800. ;
  801.     IF GENERATINGCFM THEN
  802.         IMPORT_CFM_FUNCTION TELSetupFilter
  803.     ENDIF
  804.  
  805. ;
  806. ; pascal void TELSetupItem(short procID, Ptr theConfig, short count, DialogPtr theDialog, short *theItem, long *magicCookie)
  807. ;
  808.     IF GENERATINGCFM THEN
  809.         IMPORT_CFM_FUNCTION TELSetupItem
  810.     ENDIF
  811.  
  812. ;
  813. ; pascal void TELSetupCleanup(short procID, Ptr theConfig, short count, DialogPtr theDialog, long *magicCookie)
  814. ;
  815.     IF GENERATINGCFM THEN
  816.         IMPORT_CFM_FUNCTION TELSetupCleanup
  817.     ENDIF
  818.  
  819. ;
  820. ; pascal void TELSetupXCleanup(short procID, Ptr theConfig, short count, DialogPtr theDialog, Boolean OKed, long *magicCookie)
  821. ;
  822.     IF GENERATINGCFM THEN
  823.         IMPORT_CFM_FUNCTION TELSetupXCleanup
  824.     ENDIF
  825.  
  826. ;
  827. ; pascal void TELSetupPostflight(short procID)
  828. ;
  829.     IF GENERATINGCFM THEN
  830.         IMPORT_CFM_FUNCTION TELSetupPostflight
  831.     ENDIF
  832.  
  833. ;
  834. ; pascal TELErr TELDispose(TELHandle hTEL)
  835. ;
  836.     IF GENERATINGCFM THEN
  837.         IMPORT_CFM_FUNCTION TELDispose
  838.     ENDIF
  839.  
  840. ;
  841. ; pascal short TELCountDNs(TELHandle hTEL, short dnType, Boolean physical)
  842. ;
  843.     IF GENERATINGCFM THEN
  844.         IMPORT_CFM_FUNCTION TELCountDNs
  845.     ENDIF
  846.  
  847. ;
  848. ; pascal TELErr TELDNLookupByIndex(TELHandle hTEL, short dnType, Boolean physical, short index, TELDNHandle *hTELDN)
  849. ;
  850.     IF GENERATINGCFM THEN
  851.         IMPORT_CFM_FUNCTION TELDNLookupByIndex
  852.     ENDIF
  853.  
  854. ;
  855. ; pascal TELErr TELDNLookupByName(TELHandle hTEL, ConstStr255Param DN, TELDNHandle *hTELDN)
  856. ;
  857.     IF GENERATINGCFM THEN
  858.         IMPORT_CFM_FUNCTION TELDNLookupByName
  859.     ENDIF
  860.  
  861. ;
  862. ; pascal TELErr TELDNSelect(TELDNHandle hTELDN, Boolean select)
  863. ;
  864.     IF GENERATINGCFM THEN
  865.         IMPORT_CFM_FUNCTION TELDNSelect
  866.     ENDIF
  867.  
  868. ;
  869. ; pascal TELErr TELDNDispose(TELDNHandle hTELDN)
  870. ;
  871.     IF GENERATINGCFM THEN
  872.         IMPORT_CFM_FUNCTION TELDNDispose
  873.     ENDIF
  874.  
  875. ;
  876. ; pascal TELErr TELGetDNInfo(TELDNHandle hTELDN)
  877. ;
  878.     IF GENERATINGCFM THEN
  879.         IMPORT_CFM_FUNCTION TELGetDNInfo
  880.     ENDIF
  881.  
  882. ;
  883. ; pascal TELErr TELGetDNFlags(TELDNHandle hTELDN, long *dnFeatureFlags, long *dnForwardFlags)
  884. ;
  885.     IF GENERATINGCFM THEN
  886.         IMPORT_CFM_FUNCTION TELGetDNFlags
  887.     ENDIF
  888.  
  889. ;
  890. ; pascal TELErr TELDNMsgHand(TELDNHandle hTELDN, Boolean allDNs, long eventMask, TelephoneDNMsgProcPtr msgProc, long globals)
  891. ;
  892.     IF GENERATINGCFM THEN
  893.         IMPORT_CFM_FUNCTION TELDNMsgHand
  894.     ENDIF
  895.  
  896. ;
  897. ; pascal TELErr TELClrDNMsgHand(TELDNHandle hTELDN, TelephoneDNMsgProcPtr msgProc)
  898. ;
  899.     IF GENERATINGCFM THEN
  900.         IMPORT_CFM_FUNCTION TELClrDNMsgHand
  901.     ENDIF
  902.  
  903. ;
  904. ; pascal TELErr TELDNEventsSupp(TELDNHandle hTELDN, long *eventMask)
  905. ;
  906.     IF GENERATINGCFM THEN
  907.         IMPORT_CFM_FUNCTION TELDNEventsSupp
  908.     ENDIF
  909.  
  910. ;
  911. ; pascal short TELCountCAs(TELDNHandle hTELDN, short internalExternal)
  912. ;
  913.     IF GENERATINGCFM THEN
  914.         IMPORT_CFM_FUNCTION TELCountCAs
  915.     ENDIF
  916.  
  917. ;
  918. ; pascal TELErr TELCALookup(TELDNHandle hTELDN, short internalExternal, short index, TELCAHandle *hTELCA)
  919. ;
  920.     IF GENERATINGCFM THEN
  921.         IMPORT_CFM_FUNCTION TELCALookup
  922.     ENDIF
  923.  
  924. ;
  925. ; pascal TELErr TELCADispose(TELCAHandle hTELCA)
  926. ;
  927.     IF GENERATINGCFM THEN
  928.         IMPORT_CFM_FUNCTION TELCADispose
  929.     ENDIF
  930.  
  931. ;
  932. ; pascal TELErr TELGetCAState(TELCAHandle hTELCA, short *state)
  933. ;
  934.     IF GENERATINGCFM THEN
  935.         IMPORT_CFM_FUNCTION TELGetCAState
  936.     ENDIF
  937.  
  938. ;
  939. ; pascal TELErr TELGetCAFlags(TELCAHandle hTELCA, long *caFeatureFlags, long *caOtherFeatures)
  940. ;
  941.     IF GENERATINGCFM THEN
  942.         IMPORT_CFM_FUNCTION TELGetCAFlags
  943.     ENDIF
  944.  
  945. ;
  946. ; pascal TELErr TELGetCAInfo(TELCAHandle hTELCA)
  947. ;
  948.     IF GENERATINGCFM THEN
  949.         IMPORT_CFM_FUNCTION TELGetCAInfo
  950.     ENDIF
  951.  
  952. ;
  953. ; pascal TELErr TELCAMsgHand(TELDNHandle hTELDN, long eventMask, TelephoneCAMsgProcPtr msgProc, long globals)
  954. ;
  955.     IF GENERATINGCFM THEN
  956.         IMPORT_CFM_FUNCTION TELCAMsgHand
  957.     ENDIF
  958.  
  959. ;
  960. ; pascal TELErr TELClrCAMsgHand(TELDNHandle hTELDN, TelephoneCAMsgProcPtr msgProc)
  961. ;
  962.     IF GENERATINGCFM THEN
  963.         IMPORT_CFM_FUNCTION TELClrCAMsgHand
  964.     ENDIF
  965.  
  966. ;
  967. ; pascal TELErr TELCAEventsSupp(TELDNHandle hTELDN, long *eventMask)
  968. ;
  969.     IF GENERATINGCFM THEN
  970.         IMPORT_CFM_FUNCTION TELCAEventsSupp
  971.     ENDIF
  972.  
  973. ;
  974. ; pascal TELErr TELSetupCall(TELDNHandle hTELDN, TELCAHandle *hTELCA, ConstStr255Param destDN, ConstStr255Param destName, ConstStr255Param destSubaddress, ConstStr255Param userUserInfo, short bearerType, short rate)
  975. ;
  976.     IF GENERATINGCFM THEN
  977.         IMPORT_CFM_FUNCTION TELSetupCall
  978.     ENDIF
  979.  
  980. ;
  981. ; pascal TELErr TELConnect(TELCAHandle hTELCA)
  982. ;
  983.     IF GENERATINGCFM THEN
  984.         IMPORT_CFM_FUNCTION TELConnect
  985.     ENDIF
  986.  
  987. ;
  988. ; pascal TELErr TELDialDigits(TELCAHandle hTELCA, ConstStr255Param digits)
  989. ;
  990.     IF GENERATINGCFM THEN
  991.         IMPORT_CFM_FUNCTION TELDialDigits
  992.     ENDIF
  993.  
  994. ;
  995. ; pascal TELErr TELAcceptCall(TELCAHandle hTELCA)
  996. ;
  997.     IF GENERATINGCFM THEN
  998.         IMPORT_CFM_FUNCTION TELAcceptCall
  999.     ENDIF
  1000.  
  1001. ;
  1002. ; pascal TELErr TELRejectCall(TELCAHandle hTELCA, short reason)
  1003. ;
  1004.     IF GENERATINGCFM THEN
  1005.         IMPORT_CFM_FUNCTION TELRejectCall
  1006.     ENDIF
  1007.  
  1008. ;
  1009. ; pascal TELErr TELDeflectCall(TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress)
  1010. ;
  1011.     IF GENERATINGCFM THEN
  1012.         IMPORT_CFM_FUNCTION TELDeflectCall
  1013.     ENDIF
  1014.  
  1015. ;
  1016. ; pascal TELErr TELAnswerCall(TELCAHandle hTELCA)
  1017. ;
  1018.     IF GENERATINGCFM THEN
  1019.         IMPORT_CFM_FUNCTION TELAnswerCall
  1020.     ENDIF
  1021.  
  1022. ;
  1023. ; pascal TELErr TELDrop(TELCAHandle hTELCA, ConstStr255Param userUserInfo)
  1024. ;
  1025.     IF GENERATINGCFM THEN
  1026.         IMPORT_CFM_FUNCTION TELDrop
  1027.     ENDIF
  1028.  
  1029. ;
  1030. ; pascal TELErr TELHold(TELCAHandle hTELCA)
  1031. ;
  1032.     IF GENERATINGCFM THEN
  1033.         IMPORT_CFM_FUNCTION TELHold
  1034.     ENDIF
  1035.  
  1036. ;
  1037. ; pascal TELErr TELRetrieve(TELCAHandle hTELCA)
  1038. ;
  1039.     IF GENERATINGCFM THEN
  1040.         IMPORT_CFM_FUNCTION TELRetrieve
  1041.     ENDIF
  1042.  
  1043. ;
  1044. ; pascal TELErr TELConferencePrep(TELCAHandle hTELCA1, TELCAHandle hTELCA2, short numToConference)
  1045. ;
  1046.     IF GENERATINGCFM THEN
  1047.         IMPORT_CFM_FUNCTION TELConferencePrep
  1048.     ENDIF
  1049.  
  1050. ;
  1051. ; pascal TELErr TELConferenceEstablish(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1052. ;
  1053.     IF GENERATINGCFM THEN
  1054.         IMPORT_CFM_FUNCTION TELConferenceEstablish
  1055.     ENDIF
  1056.  
  1057. ;
  1058. ; pascal TELErr TELConferenceSplit(TELCAHandle hTELCA)
  1059. ;
  1060.     IF GENERATINGCFM THEN
  1061.         IMPORT_CFM_FUNCTION TELConferenceSplit
  1062.     ENDIF
  1063.  
  1064. ;
  1065. ; pascal TELErr TELTransferPrep(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1066. ;
  1067.     IF GENERATINGCFM THEN
  1068.         IMPORT_CFM_FUNCTION TELTransferPrep
  1069.     ENDIF
  1070.  
  1071. ;
  1072. ; pascal TELErr TELTransferEstablish(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1073. ;
  1074.     IF GENERATINGCFM THEN
  1075.         IMPORT_CFM_FUNCTION TELTransferEstablish
  1076.     ENDIF
  1077.  
  1078. ;
  1079. ; pascal TELErr TELTransferBlind(TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress)
  1080. ;
  1081.     IF GENERATINGCFM THEN
  1082.         IMPORT_CFM_FUNCTION TELTransferBlind
  1083.     ENDIF
  1084.  
  1085. ;
  1086. ; pascal TELErr TELForwardSet(TELDNHandle hTELDN, ConstStr255Param forwardDN, ConstStr255Param forwardName, ConstStr255Param forwardSubaddress, short forwardType, short numrings)
  1087. ;
  1088.     IF GENERATINGCFM THEN
  1089.         IMPORT_CFM_FUNCTION TELForwardSet
  1090.     ENDIF
  1091.  
  1092. ;
  1093. ; pascal TELErr TELForwardClear(TELDNHandle hTELDN, short forwardType)
  1094. ;
  1095.     IF GENERATINGCFM THEN
  1096.         IMPORT_CFM_FUNCTION TELForwardClear
  1097.     ENDIF
  1098.  
  1099. ;
  1100. ; pascal TELErr TELCallbackSet(TELCAHandle hTELCA, short *callbackRef)
  1101. ;
  1102.     IF GENERATINGCFM THEN
  1103.         IMPORT_CFM_FUNCTION TELCallbackSet
  1104.     ENDIF
  1105.  
  1106. ;
  1107. ; pascal TELErr TELCallbackClear(TELHandle hTEL, short callbackRef)
  1108. ;
  1109.     IF GENERATINGCFM THEN
  1110.         IMPORT_CFM_FUNCTION TELCallbackClear
  1111.     ENDIF
  1112.  
  1113. ;
  1114. ; pascal TELErr TELCallbackNow(TELCAHandle hTELCA, short callbackRef)
  1115. ;
  1116.     IF GENERATINGCFM THEN
  1117.         IMPORT_CFM_FUNCTION TELCallbackNow
  1118.     ENDIF
  1119.  
  1120. ;
  1121. ; pascal TELErr TELDNDSet(TELDNHandle hTELDN, short dndType)
  1122. ;
  1123.     IF GENERATINGCFM THEN
  1124.         IMPORT_CFM_FUNCTION TELDNDSet
  1125.     ENDIF
  1126.  
  1127. ;
  1128. ; pascal TELErr TELDNDClear(TELDNHandle hTELDN, short dndType)
  1129. ;
  1130.     IF GENERATINGCFM THEN
  1131.         IMPORT_CFM_FUNCTION TELDNDClear
  1132.     ENDIF
  1133.  
  1134. ;
  1135. ; pascal TELErr TELCallPickup(TELCAHandle hTELCA, ConstStr255Param pickupDN, short pickupGroupID)
  1136. ;
  1137.     IF GENERATINGCFM THEN
  1138.         IMPORT_CFM_FUNCTION TELCallPickup
  1139.     ENDIF
  1140.  
  1141. ;
  1142. ; pascal TELErr TELParkCall(TELCAHandle hTELCA, StringPtr *parkRetrieveID, ConstStr255Param parkID)
  1143. ;
  1144.     IF GENERATINGCFM THEN
  1145.         IMPORT_CFM_FUNCTION TELParkCall
  1146.     ENDIF
  1147.  
  1148. ;
  1149. ; pascal TELErr TELRetrieveParkedCall(TELCAHandle hTELCA, ConstStr255Param parkRetrieveID)
  1150. ;
  1151.     IF GENERATINGCFM THEN
  1152.         IMPORT_CFM_FUNCTION TELRetrieveParkedCall
  1153.     ENDIF
  1154.  
  1155. ;
  1156. ; pascal TELErr TELVoiceMailAccess(TELCAHandle hTELCA)
  1157. ;
  1158.     IF GENERATINGCFM THEN
  1159.         IMPORT_CFM_FUNCTION TELVoiceMailAccess
  1160.     ENDIF
  1161.  
  1162. ;
  1163. ; pascal TELErr TELPaging(TELCAHandle hTELCA, short pageID)
  1164. ;
  1165.     IF GENERATINGCFM THEN
  1166.         IMPORT_CFM_FUNCTION TELPaging
  1167.     ENDIF
  1168.  
  1169. ;
  1170. ; pascal TELErr TELIntercom(TELCAHandle hTELCA, short intercomID)
  1171. ;
  1172.     IF GENERATINGCFM THEN
  1173.         IMPORT_CFM_FUNCTION TELIntercom
  1174.     ENDIF
  1175.  
  1176. ;
  1177. ; pascal TELErr TELOtherFeatureList(TELHandle hTEL, FeatureListPtr *fList)
  1178. ;
  1179.     IF GENERATINGCFM THEN
  1180.         IMPORT_CFM_FUNCTION TELOtherFeatureList
  1181.     ENDIF
  1182.  
  1183. ;
  1184. ; pascal TELErr TELOtherFeatureImplement(TELHandle hTEL, Handle theHandle, short featureID)
  1185. ;
  1186.     IF GENERATINGCFM THEN
  1187.         IMPORT_CFM_FUNCTION TELOtherFeatureImplement
  1188.     ENDIF
  1189.  
  1190. ;
  1191. ; pascal TELErr TELToolFunctions(TELHandle hTEL, short msgcode, Boolean *supportsIt)
  1192. ;
  1193.     IF GENERATINGCFM THEN
  1194.         IMPORT_CFM_FUNCTION TELToolFunctions
  1195.     ENDIF
  1196.  
  1197. ;
  1198. ; pascal TELErr TELOtherFunction(TELHandle hTEL, Ptr paramblock, long size)
  1199. ;
  1200.     IF GENERATINGCFM THEN
  1201.         IMPORT_CFM_FUNCTION TELOtherFunction
  1202.     ENDIF
  1203.  
  1204. ;
  1205. ; pascal TELErr TELGetHooksw(TELHandle hTEL, short hookType, Boolean *offHook)
  1206. ;
  1207.     IF GENERATINGCFM THEN
  1208.         IMPORT_CFM_FUNCTION TELGetHooksw
  1209.     ENDIF
  1210.  
  1211. ;
  1212. ; pascal TELErr TELSetHooksw(TELHandle hTEL, short hookType, Boolean offHook)
  1213. ;
  1214.     IF GENERATINGCFM THEN
  1215.         IMPORT_CFM_FUNCTION TELSetHooksw
  1216.     ENDIF
  1217.  
  1218. ;
  1219. ; pascal TELErr TELGetVolume(TELHandle hTEL, short volType, short *level, short *volState)
  1220. ;
  1221.     IF GENERATINGCFM THEN
  1222.         IMPORT_CFM_FUNCTION TELGetVolume
  1223.     ENDIF
  1224.  
  1225. ;
  1226. ; pascal TELErr TELSetVolume(TELHandle hTEL, short volType, short *level, short volState)
  1227. ;
  1228.     IF GENERATINGCFM THEN
  1229.         IMPORT_CFM_FUNCTION TELSetVolume
  1230.     ENDIF
  1231.  
  1232. ;
  1233. ; pascal TELErr TELAlert(TELHandle hTEL, short *level, short alertPattern)
  1234. ;
  1235.     IF GENERATINGCFM THEN
  1236.         IMPORT_CFM_FUNCTION TELAlert
  1237.     ENDIF
  1238.  
  1239. ;
  1240. ; pascal TELErr TELGetDisplay(TELHandle hTEL, short index, short *displayMode, StringPtr *text)
  1241. ;
  1242.     IF GENERATINGCFM THEN
  1243.         IMPORT_CFM_FUNCTION TELGetDisplay
  1244.     ENDIF
  1245.  
  1246. ;
  1247. ; pascal TELErr TELSetDisplay(TELHandle hTEL, short index, short displayMode, ConstStr255Param text)
  1248. ;
  1249.     IF GENERATINGCFM THEN
  1250.         IMPORT_CFM_FUNCTION TELSetDisplay
  1251.     ENDIF
  1252.  
  1253. ;
  1254. ; pascal void TELIdle(TELHandle hTEL)
  1255. ;
  1256.     IF GENERATINGCFM THEN
  1257.         IMPORT_CFM_FUNCTION TELIdle
  1258.     ENDIF
  1259.  
  1260. ;
  1261. ; pascal void TELActivate(TELHandle hTEL, Boolean activate)
  1262. ;
  1263.     IF GENERATINGCFM THEN
  1264.         IMPORT_CFM_FUNCTION TELActivate
  1265.     ENDIF
  1266.  
  1267. ;
  1268. ; pascal void TELResume(TELHandle hTEL, Boolean resume)
  1269. ;
  1270.     IF GENERATINGCFM THEN
  1271.         IMPORT_CFM_FUNCTION TELResume
  1272.     ENDIF
  1273.  
  1274. ;
  1275. ; pascal Boolean TELMenu(TELHandle hTEL, short menuID, short item)
  1276. ;
  1277.     IF GENERATINGCFM THEN
  1278.         IMPORT_CFM_FUNCTION TELMenu
  1279.     ENDIF
  1280.  
  1281. ;
  1282. ; pascal void TELEvent(TELHandle hTEL, const EventRecord *theEvent)
  1283. ;
  1284.     IF GENERATINGCFM THEN
  1285.         IMPORT_CFM_FUNCTION TELEvent
  1286.     ENDIF
  1287.  
  1288. ;
  1289. ; pascal void TELGetToolName(short procID, Str255 name)
  1290. ;
  1291.     IF GENERATINGCFM THEN
  1292.         IMPORT_CFM_FUNCTION TELGetToolName
  1293.     ENDIF
  1294.  
  1295. ;
  1296. ; pascal Handle TELGetVersion(TELHandle hTEL)
  1297. ;
  1298.     IF GENERATINGCFM THEN
  1299.         IMPORT_CFM_FUNCTION TELGetVersion
  1300.     ENDIF
  1301.  
  1302. ;
  1303. ; pascal short TELGetTELVersion(void )
  1304. ;
  1305.     IF GENERATINGCFM THEN
  1306.         IMPORT_CFM_FUNCTION TELGetTELVersion
  1307.     ENDIF
  1308.  
  1309. ;
  1310. ; pascal TELErr TELIntlToEnglish(TELHandle hTEL, Ptr inputPtr, Ptr *outputPtr, short language)
  1311. ;
  1312.     IF GENERATINGCFM THEN
  1313.         IMPORT_CFM_FUNCTION TELIntlToEnglish
  1314.     ENDIF
  1315.  
  1316. ;
  1317. ; pascal TELErr TELEnglishToIntl(TELHandle hTEL, Ptr inputPtr, Ptr *outputPtr, short language)
  1318. ;
  1319.     IF GENERATINGCFM THEN
  1320.         IMPORT_CFM_FUNCTION TELEnglishToIntl
  1321.     ENDIF
  1322.  
  1323. ;
  1324. ; pascal TELErr TELGetDNSoundInput(TELDNHandle hTELDN, Str255 deviceName)
  1325. ;
  1326.     IF GENERATINGCFM THEN
  1327.         IMPORT_CFM_FUNCTION TELGetDNSoundInput
  1328.     ENDIF
  1329.  
  1330. ;
  1331. ; pascal TELErr TELDisposeDNSoundInput(TELDNHandle hTELDN, ConstStr255Param deviceName)
  1332. ;
  1333.     IF GENERATINGCFM THEN
  1334.         IMPORT_CFM_FUNCTION TELDisposeDNSoundInput
  1335.     ENDIF
  1336.  
  1337. ;
  1338. ; pascal TELErr TELGetDNSoundOutput(TELDNHandle hTELDN, Component *SndOut)
  1339. ;
  1340.     IF GENERATINGCFM THEN
  1341.         IMPORT_CFM_FUNCTION TELGetDNSoundOutput
  1342.     ENDIF
  1343.  
  1344. ;
  1345. ; pascal TELErr TELDisposeDNSoundOutput(TELDNHandle hTELDN, Component SndOut)
  1346. ;
  1347.     IF GENERATINGCFM THEN
  1348.         IMPORT_CFM_FUNCTION TELDisposeDNSoundOutput
  1349.     ENDIF
  1350.  
  1351. ;
  1352. ; pascal TELErr TELGetHSSoundInput(TELHandle termHand, Str255 deviceName)
  1353. ;
  1354.     IF GENERATINGCFM THEN
  1355.         IMPORT_CFM_FUNCTION TELGetHSSoundInput
  1356.     ENDIF
  1357.  
  1358. ;
  1359. ; pascal TELErr TELDisposeHSSoundInput(TELHandle termHand, ConstStr255Param deviceName)
  1360. ;
  1361.     IF GENERATINGCFM THEN
  1362.         IMPORT_CFM_FUNCTION TELDisposeHSSoundInput
  1363.     ENDIF
  1364.  
  1365. ;
  1366. ; pascal TELErr TELGetHSSoundOutput(TELHandle termHand, Component *SndOut)
  1367. ;
  1368.     IF GENERATINGCFM THEN
  1369.         IMPORT_CFM_FUNCTION TELGetHSSoundOutput
  1370.     ENDIF
  1371.  
  1372. ;
  1373. ; pascal TELErr TELDisposeHSSoundOutput(TELHandle termHand, Component SndOut)
  1374. ;
  1375.     IF GENERATINGCFM THEN
  1376.         IMPORT_CFM_FUNCTION TELDisposeHSSoundOutput
  1377.     ENDIF
  1378.  
  1379. ;
  1380. ; pascal TELErr TELDNSetAutoAnswer(TELDNHandle hTELDN, Boolean AutoAnswerOn)
  1381. ;
  1382.     IF GENERATINGCFM THEN
  1383.         IMPORT_CFM_FUNCTION TELDNSetAutoAnswer
  1384.     ENDIF
  1385.  
  1386. ;
  1387. ; pascal TELErr TELDNTollSaverControl(TELDNHandle hTELDN, Boolean QuickAnswer)
  1388. ;
  1389.     IF GENERATINGCFM THEN
  1390.         IMPORT_CFM_FUNCTION TELDNTollSaverControl
  1391.     ENDIF
  1392.  
  1393. ;
  1394. ; pascal TELErr TELSetIndHSConnect(TELHandle termHand, Boolean Connect)
  1395. ;
  1396.     IF GENERATINGCFM THEN
  1397.         IMPORT_CFM_FUNCTION TELSetIndHSConnect
  1398.     ENDIF
  1399.  
  1400. ;
  1401. ; pascal TELErr TELGetIndHSConnect(TELHandle termHand, Boolean *Connect)
  1402. ;
  1403.     IF GENERATINGCFM THEN
  1404.         IMPORT_CFM_FUNCTION TELGetIndHSConnect
  1405.     ENDIF
  1406.  
  1407. ;
  1408. ; pascal TELErr TELCAVoiceDetect(TELCAHandle hTELCA, Boolean VoiceDetectOn)
  1409. ;
  1410.     IF GENERATINGCFM THEN
  1411.         IMPORT_CFM_FUNCTION TELCAVoiceDetect
  1412.     ENDIF
  1413.  
  1414. ;
  1415. ; pascal TELErr TELCASilenceDetect(TELCAHandle hTELCA, Boolean DetectOn, long Period)
  1416. ;
  1417.     IF GENERATINGCFM THEN
  1418.         IMPORT_CFM_FUNCTION TELCASilenceDetect
  1419.     ENDIF
  1420.  
  1421. ;
  1422. ; pascal TELErr TELGetTelNewErr(void )
  1423. ;
  1424.     IF GENERATINGCFM THEN
  1425.         IMPORT_CFM_FUNCTION TELGetTelNewErr
  1426.     ENDIF
  1427.  
  1428. ;
  1429. ; pascal TELErr TELDNSetDTMF(TELDNHandle hTELDN, Boolean dtmfOn)
  1430. ;
  1431.     IF GENERATINGCFM THEN
  1432.         IMPORT_CFM_FUNCTION TELDNSetDTMF
  1433.     ENDIF
  1434.  
  1435. ;
  1436. ; pascal TELErr TELDNGetDTMF(TELDNHandle hTELDN, Boolean *dtmfOn)
  1437. ;
  1438.     IF GENERATINGCFM THEN
  1439.         IMPORT_CFM_FUNCTION TELDNGetDTMF
  1440.     ENDIF
  1441.  
  1442. ;
  1443. ; pascal TELErr TELHSSetDTMF(TELHandle termHand, Boolean dtmfOn)
  1444. ;
  1445.     IF GENERATINGCFM THEN
  1446.         IMPORT_CFM_FUNCTION TELHSSetDTMF
  1447.     ENDIF
  1448.  
  1449. ;
  1450. ; pascal TELErr TELHSGetDTMF(TELHandle termHand, Boolean *dtmfOn)
  1451. ;
  1452.     IF GENERATINGCFM THEN
  1453.         IMPORT_CFM_FUNCTION TELHSGetDTMF
  1454.     ENDIF
  1455.  
  1456. ;
  1457. ; pascal TELErr TELGetDNStatus(TELDNHandle hTELDN, long *inUse)
  1458. ;
  1459.     IF GENERATINGCFM THEN
  1460.         IMPORT_CFM_FUNCTION TELGetDNStatus
  1461.     ENDIF
  1462.  
  1463. ;
  1464. ; pascal TELErr TELGetDNProgressDet(TELDNHandle hTELDN, long selector, Boolean *prgDetOn)
  1465. ;
  1466.     IF GENERATINGCFM THEN
  1467.         IMPORT_CFM_FUNCTION TELGetDNProgressDet
  1468.     ENDIF
  1469.  
  1470. ;
  1471. ; pascal TELErr TELSetDNProgressDet(TELDNHandle hTELDN, long selector, Boolean prgDetOn)
  1472. ;
  1473.     IF GENERATINGCFM THEN
  1474.         IMPORT_CFM_FUNCTION TELSetDNProgressDet
  1475.     ENDIF
  1476.  
  1477.     ENDIF
  1478.     ENDIF ; __TELEPHONES__ 
  1479.  
  1480.